package com.wuhaha.libnetwork2.network;

public
/**
 * Create date: On 2022/8/16
 */
class GetRequest <T> extends Request<T, GetRequest>{
    public GetRequest(String url) {
        super(url);
    }

    @Override
    protected okhttp3.Request generaterRequest(okhttp3.Request.Builder builder) {
        //get 请求把参数拼接在 url后面
        String url = UrlCreact.createUrlFromParams(mUrl, params);
        okhttp3.Request request = builder.get().url(url).build();
        return request;
    }
}
